//
// Created by 陈磊 on 16/9/5.
//

#ifndef MICROSOFTCODE_TREECODE_H
#define MICROSOFTCODE_TREECODE_H

struct BinaryTreeNode{
    BinaryTreeNode* pLeft ;
    BinaryTreeNode* pRight ;
    int value ;
};

class Tree {
public:

    virtual BinaryTreeNode* buildRandomTree(int szie) ;
    virtual BinaryTreeNode* findTreeNode(int value) ;

private:
    virtual void _insertTreeNode(int value) ;
    BinaryTreeNode* pRoot ;

};

class BST : Tree{


};


class TreeCode {
public:

};


#endif //MICROSOFTCODE_TREECODE_H
